Skip to content

Feature: Subscriptions support - #50

Open
jdgc wants to merge 3 commits into
komoju:masterfrom
jdgc:feature/subscriptions
Open

Feature: Subscriptions support#50
jdgc wants to merge 3 commits into
komoju:masterfrom
jdgc:feature/subscriptions

Conversation

@jdgc

@jdgc jdgc commented Apr 23, 2022

Copy link
Copy Markdown
Contributor

Adds support for handling of subscription products.

Flow:

  • If subscription product is in the user's cart, will redirect to payment details collection page (customer mode)
  • save token to subscription "parent order" metadata
  • process parent order payment immediately with token, including any non subscription products
  • subscription is "activated" on state transition of parent order. billing cadence is handled entirely by woocommerce configuration/api
  • when a renewal payment event is triggered, event handler will read token from the metadata of parent order attached to subscription associated with the renewal order and use it to process payment

Note that each renewal payment has its own state and exists independently as an order, so this flow should work for all payment methods that customer mode supports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant